<nav aria-label="Page navigation">
    <ul class="pagination pagination-lg">
        <li>
            <span><?php echo "总计 {$total} 条记录, 共 {$total_page} 页, 本页是第 {$page} 页, 有 {$row} 条记录";?></span>
        </li>
        <li>
            <a href="<?php echo $url;?>?page=1<?php echo $urlname;?>" aria-label="Previous">
                <span aria-hidden="true">首页</span>
            </a>
        </li>
        <li>
            <a href="<?php echo $url;?>?page=<?php echo $prev;?><?php echo $urlname;?>" aria-label="Previous">
                <span aria-hidden="true">上一页</span>
            </a>
        </li>
        <!--数字页码开始-->
        <?php echo $num_link;?>
        <!--数字页码结束-->
        <li>
            <a href="<?php echo $url;?>?page=<?php echo $next;?><?php echo $urlname;?>" aria-label="Next">
                <span aria-hidden="true">下一页</span>
            </a>
        </li>
        <li>
            <a href="<?php echo $url;?>?page=<?php echo $total_page;?><?php echo $urlname;?>" aria-label="Next">
                <span aria-hidden="true">尾页</span>
            </a>
        </li>
        <li>
            <form action="" method="get" id="page" class="input-group">
                <input type="text" name="page" placeholder="页码">
                <input type="hidden" name="name" value="<?php echo $name;?>">

                <input type="submit" value="Go" class="btn btn-primary">


            </form>

        </li>
    </ul>
</nav>